package edu.whu.rose.clock.kps.spindex;

import java.util.Comparator;

import edu.whu.rose.clock.kps.datastruct.SimpleSubgraphVertex;

public class SubgraphVertexComparator implements Comparator {

	public int compare(Object obj1, Object obj2) {
		SimpleSubgraphVertex ssv1 = (SimpleSubgraphVertex) obj1;
		SimpleSubgraphVertex ssv2 = (SimpleSubgraphVertex) obj2;
		if (ssv1.getSubgraph_id() > ssv2.getSubgraph_id()) {
			return 1;
		}
		return 0;
	}

}
